package br.com.testeoab.model;

import java.io.Serializable;

public class Alternativas implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1923906234843243689L;

	private Long lngId;
	private String strAlternativa;
	private int intIdPergunta;

	public Long getLngId() {
		return lngId;
	}

	public void setLngId(Long lngId) {
		this.lngId = lngId;
	}

	public String getStrAlternativa() {
		return strAlternativa;
	}

	public void setStrAlternativa(String strAlternativa) {
		this.strAlternativa = strAlternativa;
	}

	public int getIntIdPergunta() {
		return intIdPergunta;
	}

	public void setIntIdPergunta(int intIdPergunta) {
		this.intIdPergunta = intIdPergunta;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + intIdPergunta;
		result = prime * result + ((lngId == null) ? 0 : lngId.hashCode());
		result = prime * result
				+ ((strAlternativa == null) ? 0 : strAlternativa.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Alternativas other = (Alternativas) obj;
		if (intIdPergunta != other.intIdPergunta)
			return false;
		if (lngId == null) {
			if (other.lngId != null)
				return false;
		} else if (!lngId.equals(other.lngId))
			return false;
		if (strAlternativa == null) {
			if (other.strAlternativa != null)
				return false;
		} else if (!strAlternativa.equals(other.strAlternativa))
			return false;
		return true;
	}

}
